

#ifndef _C_LOG_H_
#define _C_LOG_H_


#define LOG_MSGSIZE     128

// Log severity levels

#define LOG_DBG       1
#define LOG_INFO      2
#define LOG_WARN      4
#define LOG_ERROR     8


#define LOG_QUIET       0       
#define LOG_DBGMSG      1      
#define LOG_NOTEMSG     2      
#define LOG_WARNMSG     4       
#define LOG_ERRORMSG    8      


#define LOG_FILE        16      
#define LOG_SCR         32      
#define LOG_SYSTEM      64    

 
#include <stdio.h>

class C_Log  
{
public:
	C_Log();
	virtual ~C_Log();

  // Initialisation / termination
  int Init(char* strLogName,unsigned char uclevel);
  // Message logging
  void Append(char* strMsg);

protected:
  FILE* m_pLogFile;
  unsigned char m_uclevel;

};

#endif
 